@model IEnumerable<MilageMVC.ViewModel.VehicleViewModel>

@{
    ViewBag.Title = "Vehicles";
}


@foreach (var item in Model)
{
    <div>
        <h4>@item.Make @item.Name @item.Year</h4>
        <div>
            Year: @item.Year, @item.Mileage, @item.Units, @item.MilesPerUSGallon Us mpg, @item.MilesPerImperialGallon UK mpg  @Html.ActionLink("Add Mileage", "CreateByVehicle", "Mileages", new { id = item.VehicleID }, null)
        </div>
        <hr />
    </div>        
}

  @ViewBag.MyMileage
 

@using (Html.BeginForm("Create", "Vehicles",FormMethod.Get))
{
    <input type="submit" value="Add Vehicle" />
}



